﻿using System;
using System.IO;

namespace MovieBuddy.Controls
{
    public class FilePickerUpdatedEventArgs : EventArgs
    {
        public readonly Uri ItemUri;

        private FilePickerUpdatedEventArgs(Uri uri)
        {
            ItemUri = uri;
        }

        public static FilePickerUpdatedEventArgs Null()
        {
            return new FilePickerUpdatedEventArgs(null);
        }


        public static FilePickerUpdatedEventArgs FromUri(Uri uri)
        {
            return new FilePickerUpdatedEventArgs(uri);
        }

        public bool IsNull()
        {
            return ItemUri == null;
        }
    }
}
